package o;

import java.util.HashMap;
import java.util.Map;

public class fba {
    private static Map<String, Class<? extends fay>> ˋ = new HashMap();

    public static void ˊ(String str, Class<? extends fay> cls) {
        ˋ.put(str, cls);
    }

    public static fay ˎ(String str) {
        Class cls = (Class) ˋ.get(str);
        if (cls == null) {
            return null;
        }
        try {
            return (fay) cls.newInstance();
        } catch (Throwable e) {
            Logger.ˋ("ClickEventRegister", "InstantiationException, e: ", e);
            return null;
        } catch (Throwable e2) {
            Logger.ˋ("ClickEventRegister", "IllegalAccessException, e: ", e2);
            return null;
        }
    }
}
